package com.gugee.tiktok.common.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.gugee.tiktok.common.model.mysql.AwemeComment;
import lombok.Data;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 争对粉丝画像消息的评论实体类
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class SlimAwemeCommentDto {
    /**
     * comment id
     */
    private long cid;
    /**
     * 创建时间
     */
    private long createTime;
    /**
     * 评论的用户id
     */
    private long uid;
    /**
     * 唯一id
     */
    private String uniqueId;
    /**
     * 头像
     */
    private String avatarMedium;
    /**
     * 语言
     */
    private String language;
    /**
     * 地区
     */
    private String region;

    @Mapper(componentModel = "spring")
    public interface SlimAwemeCommentMapper {
        SlimAwemeCommentDto mapper(AwemeComment dto);

        List<SlimAwemeCommentDto> mapper(List<AwemeComment> dto);
    }
}
